# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=clustershell
pkgver=1.9.2
pkgrel=1
pkgdesc="Scalable cluster administration Python framework"
url="https://clustershell.readthedocs.io/en/latest/"
arch="noarch"
license="LGPL-2.1-or-later"
depends="py3-yaml"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-doc $pkgname-pyc"
options="!check" # TODO
source="$pkgname-$pkgver.tar.gz::https://github.com/cea-hpc/clustershell/archive/refs/tags/v$pkgver.tar.gz"

build() {
	gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl

	mv "$pkgdir"/usr/etc "$pkgdir"/etc
}

sha512sums="
a24ac286894cc8866aa218cafb755ffa6b808d3a8d666ab95eb15a784c9730ab3458ec2a9b18a6a57f429b1238e13e4dcd3622cbe75ba63fa814d28dc6d9a503  clustershell-1.9.2.tar.gz
"
